package com.wicket.okrframework.biz.service.dto.common;


import com.wicket.okrframework.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


@Data
public class StaffBeginMemberDto extends BaseDto implements Serializable {

    /**
     * 身份人员ID:
     */
    @ApiModelProperty("身份人员ID")
    private String originalRoleMemberId;

    /**
     * 身份人员编号:
     */
    @ApiModelProperty("身份人员编号")
    private String roleMemberCode;

    /**
     * 账号ID:
     */
    @ApiModelProperty("账号ID")
    private String userId;

    /**
     * 真实姓名:
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称:
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 真实头像:
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 职务信息展示:
     */
    @ApiModelProperty("职务信息展示")
    private String positionIdName;

    /**
     * 备注首位字母:
     */
    @ApiModelProperty("备注首位字母")
    private String firstLetter;

    /**
     * 是否兼职:
     */
    @ApiModelProperty("是否兼职")
    private String isPtJob;
    /**
     * 是否失效:
     */
    @ApiModelProperty("是否失效")
    private String isInvalid;
    /**
     * 身份角色ID:
     */
    @ApiModelProperty("身份角色ID")
    private String roleId;
    /**
     * 身份角色编码:
     */
    @ApiModelProperty("身份角色编码")
    private String roleCode;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      StaffBeginMemberDto that = (StaffBeginMemberDto) o;
      return  originalRoleMemberId == that.originalRoleMemberId&&roleMemberCode == that.roleMemberCode&&userId == that.userId&&idCardName == that.idCardName&&nickName == that.nickName&&userFace == that.userFace&&positionIdName == that.positionIdName&&firstLetter == that.firstLetter&&isPtJob == that.isPtJob&&isInvalid == that.isInvalid&&roleId == that.roleId&&roleCode == that.roleCode;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), originalRoleMemberId,roleMemberCode,userId,idCardName,nickName,userFace,positionIdName,firstLetter,isPtJob,isInvalid,roleId,roleCode);
    }

}
